package com.boyinet.imesh2json.common


/**
 * @author lengchunyun
 */
object GlobalInfo {

    /**
     * 电池信息 key-id，value-电池供电来源
     */
    var POWER_SOURCE_MAP: MutableMap<String, String> = HashMap(3)

    /**
     * 电池信息 key-id，value-电池供电方式
     */
    var POWER_SUPPLY_MAP: MutableMap<String, String> = HashMap(6)

    /**
     * 报警状态 key-id ， value-报警信息
     */
    var ALARM_STATUS_MAP: MutableMap<Int, String> = HashMap(8)

    init {
        POWER_SOURCE_MAP["0"] = "电池"
        POWER_SOURCE_MAP["1"] = "外供电"
        POWER_SUPPLY_MAP["00"] = "双供电"
        POWER_SUPPLY_MAP["01"] = "单电池供电"
        POWER_SUPPLY_MAP["10"] = "单外供电供电"
        ALARM_STATUS_MAP[0] = "传感器OK2"
        ALARM_STATUS_MAP[1] = "传感器OK1"
        ALARM_STATUS_MAP[2] = "传感器OUT2高压报警"
        ALARM_STATUS_MAP[3] = "传感器OUT2低压报警"
        ALARM_STATUS_MAP[4] = "传感器超量程 "
        ALARM_STATUS_MAP[5] = "电量报警"
        ALARM_STATUS_MAP[6] = "传感器OUT1高压报警"
        ALARM_STATUS_MAP[7] = "传感器OUT1低压报警"
    }
}